   function sure_time(tt){
                var tp = $(tt).prev();
                var str1 = '';
                var str2 = '';

                str1 = '<input type="date" >';
                str2 = '<a href="javascript:void(0);" onclick="uptime(this)" style="margin-left:5px;color:#53b2fb;font-size:14px;" >确定</a>';

                tp.replaceWith(str1);
                $(tt).replaceWith(str2);
            }
            
            function uptime(tt)
            {   
                var tp = $(tt).prev();
                var time = $(tt).prev().val();
                if(time == null || time == undefined || time == '')
                {
                    alert('请选择时间');
                    return false;
                }

                var str1 = '<span>'+time+'</span>';
                var str2 = '<a href="javascript:void(0);" class="cB6BAC1-f14" onclick="sure_time(this)">[修改] </a>';

                tp.replaceWith(str1);
                $(tt).replaceWith(str2);
            }         
            $('.sure').on('click',function(){
                var id = $(this).data('id');
                var status = $('input[data-id="'+id+'"]:checked').val();
                var job_id = $(this).data('job');
                var head_id = $(this).data('head');
                var type = $(this).data('type');
                var time = $('.aa[data-id="'+id+'"]').next().html();
                if(time == null || time == undefined || time == '')
                {
                    alert('请选择时间');
                    return false;
                }

                $.post(
                    'notice.html',
                    {'status':status,'id':id,'type':type,'time':time,'head_id':head_id,'job_id':job_id,'_csrf':$('.request-csrf').val()},
                    function(res)
                    {
                        res = eval('('+res+')');
                        if(res.code == 400)
                        {
                            alert(res.msg);
                        }else
                        {
                           location.reload();                        
                        }
                    });

            });

            $('.show_model').on('click',function(){
                var id = $(this).data('id');
                $('.model'+id).show();
            })

            $('.cancel').on('click',function(){
                $('.modall-back').hide();
            })
//进入详情页
 $('.btn-new').on('click',function(event){
    var id = $(this).parent().data('id');
    window.location.href= web_url+"/cmp/evaluate/detail.html?id="+id;
});